package com.example.springbootabc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * 这部分是最开始创建项目时，为了测试项目能否正常运行写的一个测试
 * 访问http://localhost:8080/hello/hello     可在页面看见：HelloWord
 * http://192.168.191.1:8080/hello/hello
 * http://127.0.0.1:8080/hello/hello
 */

@Controller
@RequestMapping(value = {"/hello"})
public class HelloController {
    @RequestMapping(value = {"/hello"})
    public String hello() {
        return "hello";
    }
}
